/*
 * An XML document type.
 * Localname: qualifiedName
 * Namespace: http://sei.buaa.edu/mdt/tli
 * Java type: edu.buaa.sei.mdt.tli.QualifiedNameDocument
 *
 * Automatically generated - do not modify.
 */
package edu.buaa.sei.mdt.tli.impl;
/**
 * A document containing one qualifiedName(@http://sei.buaa.edu/mdt/tli) element.
 *
 * This is a complex type.
 */
public class QualifiedNameDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements edu.buaa.sei.mdt.tli.QualifiedNameDocument
{
    private static final long serialVersionUID = 1L;
    
    public QualifiedNameDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUALIFIEDNAME$0 = 
        new javax.xml.namespace.QName("http://sei.buaa.edu/mdt/tli", "qualifiedName");
    
    
    /**
     * Gets the "qualifiedName" element
     */
    public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName getQualifiedName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName target = null;
            target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName)get_store().find_element_user(QUALIFIEDNAME$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "qualifiedName" element
     */
    public void setQualifiedName(edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName qualifiedName)
    {
        generatedSetterHelperImpl(qualifiedName, QUALIFIEDNAME$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }
    
    /**
     * Appends and returns a new empty "qualifiedName" element
     */
    public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName addNewQualifiedName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName target = null;
            target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName)get_store().add_element_user(QUALIFIEDNAME$0);
            return target;
        }
    }
    /**
     * An XML qualifiedName(@http://sei.buaa.edu/mdt/tli).
     *
     * This is a complex type.
     */
    public static class QualifiedNameImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName
    {
        private static final long serialVersionUID = 1L;
        
        public QualifiedNameImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName MODULENAME$0 = 
            new javax.xml.namespace.QName("", "moduleName");
        private static final javax.xml.namespace.QName COMPTYPE$2 = 
            new javax.xml.namespace.QName("", "compType");
        private static final javax.xml.namespace.QName COMPID$4 = 
            new javax.xml.namespace.QName("", "compId");
        private static final javax.xml.namespace.QName BASENAME$6 = 
            new javax.xml.namespace.QName("", "baseName");
        
        
        /**
         * Gets the "moduleName" attribute
         */
        public java.lang.String getModuleName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MODULENAME$0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "moduleName" attribute
         */
        public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName xgetModuleName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName)get_store().find_attribute_user(MODULENAME$0);
                return target;
            }
        }
        
        /**
         * True if has "moduleName" attribute
         */
        public boolean isSetModuleName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(MODULENAME$0) != null;
            }
        }
        
        /**
         * Sets the "moduleName" attribute
         */
        public void setModuleName(java.lang.String moduleName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MODULENAME$0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MODULENAME$0);
                }
                target.setStringValue(moduleName);
            }
        }
        
        /**
         * Sets (as xml) the "moduleName" attribute
         */
        public void xsetModuleName(edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName moduleName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName)get_store().find_attribute_user(MODULENAME$0);
                if (target == null)
                {
                    target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName)get_store().add_attribute_user(MODULENAME$0);
                }
                target.set(moduleName);
            }
        }
        
        /**
         * Unsets the "moduleName" attribute
         */
        public void unsetModuleName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(MODULENAME$0);
            }
        }
        
        /**
         * Gets the "compType" attribute
         */
        public java.lang.String getCompType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMPTYPE$2);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "compType" attribute
         */
        public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType xgetCompType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType)get_store().find_attribute_user(COMPTYPE$2);
                return target;
            }
        }
        
        /**
         * True if has "compType" attribute
         */
        public boolean isSetCompType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(COMPTYPE$2) != null;
            }
        }
        
        /**
         * Sets the "compType" attribute
         */
        public void setCompType(java.lang.String compType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMPTYPE$2);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COMPTYPE$2);
                }
                target.setStringValue(compType);
            }
        }
        
        /**
         * Sets (as xml) the "compType" attribute
         */
        public void xsetCompType(edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType compType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType)get_store().find_attribute_user(COMPTYPE$2);
                if (target == null)
                {
                    target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType)get_store().add_attribute_user(COMPTYPE$2);
                }
                target.set(compType);
            }
        }
        
        /**
         * Unsets the "compType" attribute
         */
        public void unsetCompType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(COMPTYPE$2);
            }
        }
        
        /**
         * Gets the "compId" attribute
         */
        public java.lang.String getCompId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMPID$4);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "compId" attribute
         */
        public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId xgetCompId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId)get_store().find_attribute_user(COMPID$4);
                return target;
            }
        }
        
        /**
         * True if has "compId" attribute
         */
        public boolean isSetCompId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(COMPID$4) != null;
            }
        }
        
        /**
         * Sets the "compId" attribute
         */
        public void setCompId(java.lang.String compId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMPID$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COMPID$4);
                }
                target.setStringValue(compId);
            }
        }
        
        /**
         * Sets (as xml) the "compId" attribute
         */
        public void xsetCompId(edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId compId)
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId)get_store().find_attribute_user(COMPID$4);
                if (target == null)
                {
                    target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId)get_store().add_attribute_user(COMPID$4);
                }
                target.set(compId);
            }
        }
        
        /**
         * Unsets the "compId" attribute
         */
        public void unsetCompId()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(COMPID$4);
            }
        }
        
        /**
         * Gets the "baseName" attribute
         */
        public java.lang.String getBaseName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASENAME$6);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "baseName" attribute
         */
        public edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName xgetBaseName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName)get_store().find_attribute_user(BASENAME$6);
                return target;
            }
        }
        
        /**
         * True if has "baseName" attribute
         */
        public boolean isSetBaseName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(BASENAME$6) != null;
            }
        }
        
        /**
         * Sets the "baseName" attribute
         */
        public void setBaseName(java.lang.String baseName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASENAME$6);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASENAME$6);
                }
                target.setStringValue(baseName);
            }
        }
        
        /**
         * Sets (as xml) the "baseName" attribute
         */
        public void xsetBaseName(edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName baseName)
        {
            synchronized (monitor())
            {
                check_orphaned();
                edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName target = null;
                target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName)get_store().find_attribute_user(BASENAME$6);
                if (target == null)
                {
                    target = (edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName)get_store().add_attribute_user(BASENAME$6);
                }
                target.set(baseName);
            }
        }
        
        /**
         * Unsets the "baseName" attribute
         */
        public void unsetBaseName()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(BASENAME$6);
            }
        }
        /**
         * An XML moduleName(@).
         *
         * This is an atomic type that is a restriction of edu.buaa.sei.mdt.tli.QualifiedNameDocument$QualifiedName$ModuleName.
         */
        public static class ModuleNameImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.ModuleName
        {
            private static final long serialVersionUID = 1L;
            
            public ModuleNameImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected ModuleNameImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML compType(@).
         *
         * This is an atomic type that is a restriction of edu.buaa.sei.mdt.tli.QualifiedNameDocument$QualifiedName$CompType.
         */
        public static class CompTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompType
        {
            private static final long serialVersionUID = 1L;
            
            public CompTypeImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected CompTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML compId(@).
         *
         * This is an atomic type that is a restriction of edu.buaa.sei.mdt.tli.QualifiedNameDocument$QualifiedName$CompId.
         */
        public static class CompIdImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.CompId
        {
            private static final long serialVersionUID = 1L;
            
            public CompIdImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected CompIdImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
        /**
         * An XML baseName(@).
         *
         * This is an atomic type that is a restriction of edu.buaa.sei.mdt.tli.QualifiedNameDocument$QualifiedName$BaseName.
         */
        public static class BaseNameImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements edu.buaa.sei.mdt.tli.QualifiedNameDocument.QualifiedName.BaseName
        {
            private static final long serialVersionUID = 1L;
            
            public BaseNameImpl(org.apache.xmlbeans.SchemaType sType)
            {
                super(sType, false);
            }
            
            protected BaseNameImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
            {
                super(sType, b);
            }
        }
    }
}
